﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/User.Master" AutoEventWireup="true"
    CodeBehind="ZL_WL_Edit.aspx.cs" Inherits="CoolERP_Web.User.ZL_WL_Edit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript">
        function changeSX(obj) {
            $(obj).next().text($(obj).val());
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td class="tbHead_L">
            </td>
            <td class="tbHead_M">
                <div>
                    <b>
                        <asp:Literal ID="liTitle" runat="server">新增</asp:Literal>物料</b></div>
            </td>
            <td class="tbHead_R">
            </td>
        </tr>
        <tr>
            <td class="tbBody_L">
            </td>
            <td class="tbBody_M">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <table border="0" width="100%">
                            <tr>
                                <td align="right">
                                    物料类型
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlLXBH" runat="server" CssClass="dropdown" Width="154px" OnSelectedIndexChanged="ddlLXBH_SelectedIndexChanged"
                                        AutoPostBack="True" />
                                    <span style="color: #FF0000">*</span>
                                    <asp:Literal ID="liLXBH" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    物料名称
                                </td>
                                <td style="text-align: left;">
                                    <asp:TextBox ID="tbMC" runat="server" CssClass="textbox" MaxLength="64" Width="200px" />
                                    <span style="color: #FF0000">*</span>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" Display="Dynamic"
                                        ControlToValidate="tbMC" ErrorMessage="请输入物料名称" ForeColor="Red" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    物料规格
                                </td>
                                <td>
                                    <asp:TextBox ID="tbGG" runat="server" CssClass="textbox" MaxLength="64" Width="200px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    库存单位
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlDWBH" runat="server" CssClass="dropdown" Width="154px" />
                                    <span style="color: #FF0000">*</span>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    计量单位
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlJLDWBH" runat="server" CssClass="dropdown" Width="154px" />
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    1库存单位=
                                    <asp:TextBox ID="tbDWZHXS"
                                        runat="server" Width="33px"></asp:TextBox><span style="color: #FF0000">*</span>计量单位
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    颜色类型
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlYSLXBH" runat="server" CssClass="dropdown" AutoPostBack="True"
                                        OnSelectedIndexChanged="ddlYSLXBH_SelectedIndexChanged" />
                                    <span style="color: #FF0000">*</span>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    颜色
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlYSBH" runat="server" CssClass="dropdown">
                                        <asp:ListItem Value="">请选择</asp:ListItem>
                                    </asp:DropDownList>
                                    <span style="color: #FF0000">*</span>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    最低库存
                                </td>
                                <td>
                                    <asp:TextBox ID="tbZDKCSL" runat="server" CssClass="textbox" Width="60px" onchange="txtLimit(this,1)" />
                                    <span style="color: #FF0000">*</span>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="tbZDKCSL"
                                        Display="Dynamic" ErrorMessage="请输入最低库存" ForeColor="Red"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    最高库存
                                </td>
                                <td>
                                    <asp:TextBox ID="tbZGKCSL" runat="server" CssClass="textbox" Width="60px" onchange="txtLimit(this,1)" />
                                    <span style="color: #FF0000">*</span>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbZGKCSL"
                                        Display="Dynamic" ErrorMessage="请输入最高库存" ForeColor="Red"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    物料供应商
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlGYSID" runat="server" CssClass="dropdown" Width="154px"
                                        AutoPostBack="true" OnSelectedIndexChanged="ddlGYSID_SelectedIndexChanged" />
                                    <span style="color: #FF0000">*</span>
                                    <asp:Literal ID="liGYSBH" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 120px;">
                                    物料编号
                                </td>
                                <td style="text-align: left;">
                                    <asp:TextBox ID="tbBH" runat="server" CssClass="textbox" MaxLength="32" Width="200px"></asp:TextBox>
                                    <span style="color: #FF0000">* </span>
                                    <asp:Button ID="btnBH" runat="server" Text="生成编号" CssClass="btn_s" OnClick="btnBH_Click"
                                        CausesValidation="False" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="tbBH"
                                        ErrorMessage="RequiredFieldValidator" ForeColor="Red">请输入编号</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <hr style="color: #D4F0B0;" />
                                </td>
                            </tr>
                            <tr id="tr1" runat="server" visible="false">
                                <td align="right">
                                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownList1" runat="server" CssClass="dropdown" Width="154px"
                                        onchange="changeSX(this)" />
                                    <asp:Label ID="Literal1" runat="server" />
                                </td>
                            </tr>
                            <tr id="tr2" runat="server" visible="false">
                                <td align="right">
                                    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownList2" runat="server" CssClass="dropdown" Width="154px"
                                        onchange="changeSX(this)" />
                                    <asp:Label ID="Literal2" runat="server" />
                                </td>
                            </tr>
                            <tr id="tr3" runat="server" visible="false">
                                <td align="right">
                                    <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownList3" runat="server" CssClass="dropdown" Width="154px"
                                        onchange="changeSX(this)" />
                                    <asp:Label ID="Literal3" runat="server" />
                                </td>
                            </tr>
                            <tr id="tr4" runat="server" visible="false">
                                <td align="right">
                                    <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownList4" runat="server" CssClass="dropdown" Width="154px"
                                        onchange="changeSX(this)" />
                                    <asp:Label ID="Literal4" runat="server" />
                                </td>
                            </tr>
                            <tr id="tr5" runat="server" visible="false">
                                <td align="right">
                                    <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownList5" runat="server" CssClass="dropdown" Width="154px"
                                        onchange="changeSX(this)" />
                                    <asp:Label ID="Literal5" runat="server" />
                                </td>
                            </tr>
                            <tr id="tr6" runat="server" visible="false">
                                <td align="right">
                                    <asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownList6" runat="server" CssClass="dropdown" Width="154px"
                                        onchange="changeSX(this)" />
                                    <asp:Label ID="Literal6" runat="server" />
                                </td>
                            </tr>
                            <tr id="tr7" runat="server" visible="false">
                                <td align="right">
                                    <asp:Label ID="Label7" runat="server" Text="Label"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownList7" runat="server" CssClass="dropdown" Width="154px"
                                        onchange="changeSX(this)" />
                                    <asp:Label ID="Literal7" runat="server" />
                                </td>
                            </tr>
                            <tr id="tr8" runat="server" visible="false">
                                <td align="right">
                                    <asp:Label ID="Label8" runat="server" Text="Label"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownList8" runat="server" CssClass="dropdown" Width="154px"
                                        onchange="changeSX(this)" />
                                    <asp:Label ID="Literal8" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td>
                                    <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/Common/btn_save0.png"
                                        OnClick="btnSave_Click" />&nbsp;&nbsp; <a href="ZL_WL_Query.aspx">
                                            <img src="../Images/Common/btn_back0.png" border="0" /></a>&nbsp;&nbsp;
                                    <asp:Literal ID="lbResult" runat="server" ></asp:Literal>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="ddlGYSID" EventName="SelectedIndexChanged" />
                        <asp:AsyncPostBackTrigger ControlID="ddlLXBH" EventName="SelectedIndexChanged" />
                        <asp:AsyncPostBackTrigger ControlID="DropDownList1" EventName="SelectedIndexChanged" />
                        <asp:AsyncPostBackTrigger ControlID="DropDownList2" EventName="SelectedIndexChanged" />
                        <asp:AsyncPostBackTrigger ControlID="DropDownList3" EventName="SelectedIndexChanged" />
                        <asp:AsyncPostBackTrigger ControlID="DropDownList4" EventName="SelectedIndexChanged" />
                        <asp:AsyncPostBackTrigger ControlID="DropDownList5" EventName="SelectedIndexChanged" />
                        <asp:AsyncPostBackTrigger ControlID="DropDownList6" EventName="SelectedIndexChanged" />
                        <asp:AsyncPostBackTrigger ControlID="DropDownList7" EventName="SelectedIndexChanged" />
                        <asp:AsyncPostBackTrigger ControlID="DropDownList8" EventName="SelectedIndexChanged" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
            <td class="tbBody_R">
            </td>
        </tr>
        <tr>
            <td class="tbFoot_L">
            </td>
            <td class="tbFoot_M">
            </td>
            <td class="tbFoot_R">
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hdId" runat="server" />
    <asp:HiddenField ID="hdBh" runat="server" />
</asp:Content>
